import type { AsyncDataResult, Data } from './types'

export default interface ICrud {
  insert(table: string, data: Data): AsyncDataResult
  update(table: string, where: any, data: any): AsyncDataResult
  drop(table: string, where: any): AsyncDataResult<string>
}